import request from '../utils/request'

//安灯类型列表
export function lampTypeList(data) {
  return request({
    url: '/lampType/getList',
    method: 'post',
    data
  })
}

//添加安灯类型
export function lampTypeEdit(data) {
  return request({
    url: '/lampType/edit',
    method: 'post',
    data
  })
}

//删除安灯类型
export function lampTypeDel(data) {
  return request({
    url: '/lampType/del',
    method: 'post',
    data
  })
}

//获取安灯盒子信息
export function lampBoxList(data) {
  return request({
    url: '/lampBox/getList',
    method: 'post',
    data
  })
}

//编辑安灯盒子配置
export function lampBoxEdit(data) {
  return request({
    url: '/lampBox/edit',
    method: 'post',
    data
  })
}

//安灯类型下拉列表
export function lampTypeDropDown(data) {
  return request({
    url: '/lampType/dropDown',
    method: 'post',
    data
  })
}

//获取安灯到人配置列表
export function deviceLampTypeList(data) {
  return request({
    url: '/deviceLampType/getList',
    method: 'post',
    data
  })
}

//获取安灯到人配置详情列表
export function deviceLampDetailList(data) {
  return request({
    url: '/deviceLampType/getDetailList',
    method: 'post',
    data
  })
}

//编辑安灯到人配置
export function deviceLampTypeEdit(data) {
  return request({
    url: '/deviceLampType/edit',
    method: 'post',
    data
  })
}

//安灯报表列表
export function lampRequestList(data) {
  return request({
    url: '/lampRequest/getList',
    method: 'post',
    data
  })
}

//安灯看板
export function lampDashboard(data) {
  return request({
    url: '/lampRequest/lampDashboard',
    method: 'post',
    data
  })
}

//安灯时序
export function lampTiming(data) {
  return request({
    url: '/lampRequest/lampTiming',
    method: 'post',
    data
  })
}

//设备下拉
export function deviceDropDown(data) {
  return request({
    url: '/device/dropDown',
    method: 'post',
    data
  })
}

//工序看板
export function workReportGroupByProcess(data) {
  return request({
    url: '/data/workReportGroupByProcess',
    method: 'post',
    data
  })
}

//联络灯时序类型分组导出
export function exportLampGroupType(data) {
  return request({
    responseType: 'blob',
    url: '/lampRequest/exportLampGroupType',
    method: 'post',
    data
  })
}

//联络灯时序详情导出
export function exportLampTimingDetail(data) {
  return request({
    responseType: 'blob',
    url: '/lampRequest/exportLampTimingDetail',
    method: 'post',
    data
  })
}
//联络灯报表导出
export function exportGetList(data) {
  return request({
    responseType: 'blob',
    url: '/lampRequest/exportGetList',
    method: 'post',
    data
  })
}